<div class="m-tab s-tab">
	<h2 class="u-tt">菜单管理</h2>
	<ul>
		<li class="z-crt"><a href="{$url|'AdminCatalog/index'}">菜单列表</a></li>
		<li><a href="{$url|'AdminCatalog/add'}">添加菜单</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th class="cola">ID</th>
			<th>菜单名称 ({$count})</th>
			<th>链接</th>
			<th class="cola">顺序</th>
			<th class="cola">类型</th>
			<th class="cola">状态</th>
			<th class="colb">操作</th>
		</tr>
	</thead>
	<tbody>
		<!--{loop="$list $key $vo"}-->
		<tr>
        <td>{$vo.catalog_id}</td>
        <td>{$vo.tree}{if="empty($vo['name'])"}{$vo.class_name}{else}{$vo.name}{/if}</td>
		<td>{if="$vo['url']"}{$vo.url}{else}自动{/if}</td>
        <td> <span class="u-edit" url="<?php echo url('duxcms/AdminCatalog/orderEdit',array('catalog_id'=>$vo['catalog_id'])); ?>" name="sequence" width="20">{$vo.sequence}</span></td>
		<td>
        <!--{if="!$vo['url']"}-->
        <font color=green>栏目</font>
        <!--{else}-->
        <font color=green>链接</font>
        <!--{/if}-->
        </td>
        <td>
        <!--{if="$vo['show']==1"}-->
        <font color=green><b>√</b></font>
        <!--{else}-->
        <font color=red><b>×</b></font>
        <!--{/if}-->
        </td>
			<td><a href="<?php echo url('AdminCatalog/edit',array('catalog_id'=>$vo['catalog_id'])); ?>">编辑</a> / <a href="javascript:;" data="{$vo.catalog_id}" url="<?php echo url('AdminCatalog/del',array('catalog_id'=>$vo['catalog_id'])); ?>" class="u-del">删除</a></td>
		</tr>
		<!--{/loop}-->
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page"> {$page} </div>
</div>
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable();
});
</script>